def skemmtun(streng):
	skilyrdi = True
	for x in range(len(streng)):
		if streng[x] == " ":
			if streng[x-1] != streng[x+1]:
				skilyrdi = False
	return skilyrdi

oft = int(input())

strengir = []
for x in range(oft):
	blahh = input()
	strengir.append(blahh)
	if skemmtun(blahh):
		print("Fun")
	else:
		print("Boring")
